package com.atguigu.edustatistics.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author cyt
 * @create 2020-06-04 8:16
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "statistics_daily")
public class StatisticsDaily implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 统计日期
     */
    @TableField(value = "date_calculated")
    private String dateCalculated;

    /**
     * 注册人数
     */
    @TableField(value = "register_num")
    private Integer registerNum;

    /**
     * 登录人数
     */
    @TableField(value = "login_num")
    private Integer loginNum;

    /**
     * 每日播放视频数
     */
    @TableField(value = "video_view_num")
    private Integer videoViewNum;

    /**
     * 每日新增课程数
     */
    @TableField(value = "course_num")
    private Integer courseNum;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_DATE_CALCULATED = "date_calculated";

    public static final String COL_REGISTER_NUM = "register_num";

    public static final String COL_LOGIN_NUM = "login_num";

    public static final String COL_VIDEO_VIEW_NUM = "video_view_num";

    public static final String COL_COURSE_NUM = "course_num";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}